package xyz.ck.commons.comparison;

import java.io.Serializable;

public class ResultItem<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	ComparisonHelper.Flag flag = null;

	T target;

	T source;

	public ComparisonHelper.Flag getFlag() {
		return flag;
	}

	void setFlag(ComparisonHelper.Flag flag) {
		this.flag = flag;
	}

	public T getDist() {
		return target;
	}

	void setDist(T dist) {
		this.target = dist;
	}

	public T getSource() {
		return source;
	}

	void setSource(T source) {
		this.source = source;
	}

	@Override
	public String toString() {
		return "flag=" + flag + ", dist=" + target + ", source=" + source;
	}

}
